package com.example.discover_model;

import com.example.common.mvvm.repository.BaseRepository;
import com.example.discover_model.entity.FindListEntity;
import com.example.network_skd.BaseEntity;
import com.example.network_skd.SingletonRetrofit;

import io.reactivex.Observable;
import retrofit2.http.Query;

public class FindRepository extends BaseRepository {
    public Observable<BaseEntity> requestFindList(int offset, int pageCount, String tagType,int tagId, long userId){
        Observable<FindListEntity> findListEntityObservable = SingletonRetrofit.getInstance().getRetrofit()
                .create(ApiServer.class)
                .queryFindList(offset, pageCount, tagId, tagType ,userId);


        return checkNetWork(findListEntityObservable);
    }
}
